package day021.homework.p5;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class TcpClient {
    public static void main(String[] args) throws IOException {
        Socket client = new Socket("127.0.0.1", 9999);
        OutputStream netOutput = client.getOutputStream();

        String content = "你好，我是客户端小白。";

        netOutput.write(content.getBytes());

        client.shutdownOutput();

        client.close();
    }
}
